<?php 
class My_Controller extends CI_Controller { 
 
    public function __construct() { 
        parent::__construct();   
        $this->load->helper("url");
        $data['url_path']=$this->config->item('url_path');
        $data['temp_path']=$this->config->item('temp_path');
        $data['upload_path']=$this->config->item('upload_path');
        // Init data               
        $this->load->Model('Mmusic');
        $this->load->Model('Mgenre');
        $this->load->Model('Malbum');
        $this->load->Model('Mvideo');

        $data['data_listGenre']=$this->Mgenre->getAllGenre(); 
        $data['data_listGenre']=parent::convertStringUrl($data['data_listGenre'],'strGenre','titleGenre');
        $data['data_listGenre']=parent::getBase64Code($data['data_listGenre'],'idGenre');
        // Load library template 
        $this->load->library('template'); 
        // Set template 
        $this->template->set_template('default'); 
          
        // Add DocType 
        $this->template->add_doctype(); 
        $this->template->add_css('views/user/public/css/homepage.css');
        $this->template->add_css('views/user/public/css/header.css');
        $this->template->add_css('views/user/public/css/content-center.css');
        $this->template->add_js('views/user/public/js/jquery.js'); 
          
        // Parse data into view  
        $this->template->parse_view('header','user/module/header',$data);        

    } 
}

class My_playelem extends CI_Controller { 
    public function __construct() { 
        parent::__construct();   
        $this->load->helper("url");
        $data['url_path']=$this->config->item('url_path');
        $data['temp_path']=$this->config->item('temp_path');
        $data['upload_path']=$this->config->item('upload_path');
        // Init data               
        $this->load->Model('Mmusic');
        $this->load->Model('Mgenre');
        $this->load->Model('Malbum');
        $this->load->Model('Mvideo');

        $data['data_listGenre']=$this->Mgenre->getAllGenre(); 
        $data['data_listGenre']=parent::convertStringUrl($data['data_listGenre'],'strGenre','titleGenre');
        $data['data_listGenre']=parent::getBase64Code($data['data_listGenre'],'idGenre');
        // Load library template 
        $this->load->library('template');
        // Set template 
        $this->template->set_template('temp_playelem');
          
        // Add DocType
        $this->template->add_doctype(); 
        $this->template->add_css('views/user/public/css/homepage.css');
        $this->template->add_css('views/user/public/css/header.css');
        $this->template->add_css('views/user/public/css/content-center.css');
        $this->template->add_css('views/user/public/css/content-center-play.css');
        $this->template->add_css('views/user/public/css/content-navright.css');

        $this->template->add_js('views/user/public/js/jquery.js'); 
          
        // Parse data into view  
        $this->template->parse_view('header','user/module/header',$data);        

    } 
}


 ?>